package cpr.command;

import cpr.DefaultCommandHandler;
import cpr.Printer;
import cpr.data.SplitCluster;
import data.Dictionary;

public class CmdDict extends DefaultCommandHandler {
	public CmdDict() {
		super("dict","lookupd into dictionary",null,null);
	}
	public void execute(String[] params) throws Exception {
			int digital = Integer.parseInt(getParameter(params, 1,"0"));
			Dictionary dict = new Dictionary();
			dict.setPath(getCommandContext().getContext().getDictDataFilePath());
			String v1 = dict.getStringValueFor(digital);
			Printer.println(""+digital+"=" + v1);

			
			
	}
}